package annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Data
@Repository
public class DemoD {
    private DemoA a;
    private DemoB b;
    @Autowired
    public DemoD(DemoA a,DemoB b){
        this.a=a;
        this.b=b;
    }
}
